package com.qys.livesMall.anchor.enums;

import com.qys.livesMall.common.message.QysLang;

/**
 * Created by IntelliJ IDEA.
 * User: dp
 * Date: 2023/05/16
 * Time: 14:26
 * DESCRIPTION: 异常枚举类
 * @author yxh
 */
public enum AnchorMessageEnum implements QysLang {

    AVATAR_IS_NULL(50001,"avatar.is.null"),
    CAR_NUMBER_IS_NULL(50002,"carNumber.is.null"),
    DUPLICATE_APPLICATION(50003,"duplicate.application"),
    IS_COMPLETED(50004,"is.completed"),
    NOT_PASS(50005,"not.pass"),
    NONE_APPLE(50006,"none.apple"),
    NO_DATA(50007,"no.data"),
    NO_PERMISSION(50008,"no.permission"),


    请先申请主播(50010,"请先申请主播"),
    主播已被冻结(50011,"请先申请主播"),
    ;


    private final String PROJECT="anchor";

    /**
     * 错误码
     */
    private int code;

    /**
     * 错误描述
     */
    private String msgKey;

    AnchorMessageEnum(int code, String msgKey) {
        this.code = code;
        this.msgKey = msgKey;
    }

    @Override
    public String PROJECT() {
        return PROJECT;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMsgKey() {
        return msgKey;
    }
}
